package com.xiaobingby.common.page;

import java.util.ArrayList;

/**
 * @author XiaoBingBy
 * @date 2018-09-05 11:10
 * @since 1.0
 */
public class PageParams {

    /**
     * 每页显示条数，默认 10
     */
    private long pageSize = 10;

    /**
     * 当前页
     */
    private long current = 1;

    /**
     * 请求条件
     */
    private ArrayList<Query> querys;

    public long getPageSize() {
        return pageSize;
    }

    public void setPageSize(long pageSize) {
        this.pageSize = pageSize;
    }

    public long getCurrent() {
        return current;
    }

    public void setCurrent(long current) {
        this.current = current;
    }

    public ArrayList<Query> getQuerys() {
        return querys;
    }

    public void setQuerys(ArrayList<Query> querys) {
        this.querys = querys;
    }

    @Override
    public String toString() {
        return "PageParams{" +
                "pageSize=" + pageSize +
                ", current=" + current +
                ", querys=" + querys +
                '}';
    }

}
